You can use the following setting to configure whether N4 should disable all Groovy code execution.
ARGOGROOVY001 (DISABLE_GROOVY_EXECUTION) 1